package com.ksd.modules.special.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.special.entity.AdminSpecialBindDetail;
import com.ksd.modules.special.po.AdminSpecialBindDetailSavePO;
import com.ksd.modules.special.vo.AdminSpecialBindDetailVo;

import java.util.List;

public interface IAdminSpecialBindDetailService extends IBaseService<AdminSpecialBindDetail> {


    /**
     * 查找专题的分类
     * @param specialId
     * @return
     */
    List<AdminSpecialBindDetailVo> findAdminSpecialBindDetails(Long specialId,Long bindId,Integer type);


    /**
     * 保存绑定关系
     * @param adminSpecialBindDetailSavePO
     * @return
     */
    boolean saveUpdateAdminSpecialBindDetail(AdminSpecialBindDetailSavePO adminSpecialBindDetailSavePO);

    /**
     * 保存绑定关系
     * @param id
     * @return
     */
    boolean removeAdminSpecialBindDetailById(Long id);

    /**
     * 根据BindId删除所有明细
     * @param bindId
     * @return
     */
    boolean removeAdminSpecialBindDetailByBindId(Long bindId);


    /**
     * 根据id查询明细
     * @param id
     * @return
     */
    AdminSpecialBindDetailVo getAdminSpecialBindDetailById(Long id);
}
